package ng.graphics;

import java.awt.Dimension;
import java.awt.image.BufferedImage;
import java.io.IOException;

import ng.lib.Utils;

public class FrameBuffer {
	private BufferedImage[] images;

	public FrameBuffer(String[] paths) throws IOException {
		this.images = Utils.imageLodaer(paths);
	}

	public int getNumberOfFrames() {
		return images.length;
	}

	public BufferedImage getFrame(int frame) {
		return images[frame];
	}

	public Dimension getDimension(int frame) {
		return new Dimension(images[frame].getWidth(),images[frame].getHeight());
	}
}
